Add cmd module.
Use Cmd module to read user input

A nicer and cleaner way to handle input
Merge pull request #3 from Svenito/cmd

Use Cmd module