Added some comments to make the file reading code more understandable