Added command system and better input handling. Moved constants to own header file with appropriate namespaces.