Close files, added comments