Minor style changes, add changelog note, more unit tests coverage.
Add doco.