Major Refactoring of Command Execution
open and close were seperated from other commands