Fixed majority of errors and restructured file

Added a mapping saver/loader, will write mapping options to an XML
file. Beggining mapping gui.