docstrings, sinon, and initial unit tests