Added --test flag to command line which changes run in the following ways:

	Appended "-test" onto the end of the run id
	Causes only 5 tasks to be spawned
	Disables check that run directory does not already exist.
Refactorings for packaging distributed version of script