Added parser and ability to generate command bigrams
mild refactoring