Added cleanup routines, cleanup with -pedantic on linux, closed #3788, Daniel
27 files changed