Improvements per code review.

* General style fixes.
* Add changes to configuration guide.
* Add missing tests.