Newline Bugfix

I have updated the split statement using REGEX for separating lines to include support for different newline types.