added foreground run option for testing
auto setting of TEST_RUN
standardized path/name of config file
added comments