fixed bug where if a file has a newine at the end it would make the file class throw an exception because of a line length mismatch