fixed bugs with xml parsing. just a little bit more testing to do before
file I/O itself is up and running.