Finished a splitlines function, updated the docs, and added a example.
Also added the license to the top of the example files.