added slurm module
proper cleanup fter job
removed old parts duplicated in root.cc