Minor fixes.

Removed dead code.
Added missing documentation.