refactored code, added mission_control status checking, removed some requirement for user input