started mainControl general program flow
general form of mainControl
altered Helper Functions