Added write_script, submit_job and cancel_job procedures to SLURM