Added support for optional line separator on the lines method.

Added support for optional line separator on the lines method. 
Updated tests and docs to reflect this change. Fixes #305