added files to main program structure to accomidate error logging.