Fixed some docstring formatting things.

Expanded test coverage a little.