added comments for file reading