revised the parser and make the mapper and reducer working