Removed unneeded comments and recoded encoding process to get rid of the unneeded RecordParser class