Refactoring and boilerplate code problem removed.

Refactored entire parser into different packages. Created a parser class that is used to call command parsers now so that each module doesn't have identical parse functions now.