Document and simplify code.

Removed various experimental features, and added some minimal documentation.