-Added more detailed comments describing the logging system

-Cleaned some of the files

-Added a cleanup routine to close off the logs before termination

-Called new cleanup routine from main()