Clean file generation

Outlier removal command fixed.
Better plotting routines.
Removal of temporary flies at the end of the script