Added docs.
Additinoal tests.