added saving the aprun commandline string under the commmand key; cleaning up variables