Added variable for disabling the documentation.

When building the library within a larger project, the "doc" target
might clash with the larger project's doc target.
Removed all remaining traces of US_BASECLASS_NAME.
Fixed small doc and code style issues.