Clean docs.
Remove unused types.
Minor reorganization.
Some docs.