Finished reading and writing to XML file, including support for all current question types.