-Added list of functions in header for clarity
-some small bug fixes with file I/O