Added a close method for closing all of the file handles. Removed some old comments and cleaned up some method signatures.