Implemented most of the application logic except for reading and writing xml files.