Added Parser class. Implemented initial input processing functions