Added LF to CR-LF conversion, and warnings
Trivial code cleanup