Full revamp of code

Added the ParserRow class to standardize everything. Changed a lot of
code for readability and compactness. Reorganized functions a bit with
better names. Modularized parsing so each format has it's own function
now.