Major refactor of the parser. Add new functionality

Improve parser and added functionality to read one field and/or records
at a time with the parseNextField() and parseNextRecord() methods.