Add command parser

Related to #1 and party to #2 

Please review and comment.