Various changes.
More documentation.