fixes #24, closes #22
added replace for carriage return with cap D
Merge pull request #29 from kaitlin/master

PR to fix #22 and #24