Updated and regenerated doc.
Added tests. Documentation tweak.