Add docstrings and remove deprecated functionality.

Docstrings are added for all functions and methods, as well as comments
for variables and hooks.

Deprecated functionality for On-The-Fly-Encryption are removed. OTFE may
be added in at a later date.