documentation

added some docstrings