Add documentation for classes and some modules.
Bump version to 2.2.0 beta.