moved and consolidated some of the file input code. Refactored the
MainApp execution options