toNode can convert empty structures and populated structures
Renamed some stuff and now checkStructure works

There's an issue when parsing. The order of the map affects if the
line numbers are correct. Not sure how I'm going to fix this one.