added some docstrings
added docstrings