removed logging in parser
modified HashMaps to TreeMaps for sorting