Syntactic clean up
Add bin/line_ends
Remove duplication in line_ends by making a factory method, show that it works for strings and streams