Minor change by Nathan

Changed the way the program opens a file to be quicker and not require closing ('with' method auto closes files even when crashing). Also added comment to suggest how to split lines.