Updated documentation.
Style fixes.
Test refactoring.