Some more refinements and Api documentation.
Some more tests in integration test library.