added line count, removed newline adder with no purpose I can remember.