Started improving docstring usage.

I noticed that this project is pretty lacking in documentation and comments, so I'm adding docstrings as I familiarize myself with the code.