Create cmd_module to dispatch commands. [Untested]
Change to unix line endings