Handle carriage returns in lines()

Closes #305 #335
Implement standalone chaining
Update documentation for standalone