added newline method with test
typo
added test_newline docstring
fixed docstring formatting