Spring cleaning

 - synchronised formatting
 - removed warnings and (import) errors
 - added simplification for gROOT.SetBatch ...
 - tidied up legacy scripts