Begin to replace database entry with macro file
Remove all database references.
Insert RAT macro
Add flag to pass subrun directory.
Correct formatting for output files.
Get correct variables for macro.
Insert linebreaks as necessary in macro.
Add some documentation
Simplify filenaming and fix up jobqueue.