Fixed up XML parser, starting to add tiles

Starting on the tile stuff, improved the XML parser to report errors