added some comments to file handling endpoints