Can handle the newline characters now
Added some thoughts of things to do and revised some code