added unit tests. added the ability to specifiy a line seperator