add docstrings to Canvas module