removed dead code, added EOL to files, and disabled warning in readlines functions