Various changes.
Improved docs.