Improve s:MergeLines() behaviour.
Improve s:Prune() behaviour.
Improve error handling.