Add comments and docstrings to module and subset of functions.