fix for newlines and tab characters
add more tests
Merge pull request #2 from bahamas10/dave-newline

Dave newline