Added lots and lots of docstrings. What a mission\!