Refactored command manager, laid groundwork for numerous modules