Fixed newline problem that arose when processing classifying the file vs. line-by-line. Also re-adjusted main.