Remove a couple of unused functions.
Add some simple docstrings.