Revert "Cleanup and documentation."

This reverts commit 6cdd9792934d7b6956ff6f88aa339bd3260166d2.