Added comments for file read / write