Added support for computing parameters and for stopping Slurm Jobs, improved agent and output file handling. Minor fixes