Formatting, documentation, and additional tests.