split parser into helper file, added tests for helper functions - bllevy2,garg14