record state in MEGAM_HOME, all logs are rolled up in <nodename>.log_out,_err
Merge pull request #10 from indykish/master

record state in MEGAM_HOME, all logs are rolled up in <nodename>.log_out, _err