made some docs. changed some docstrings on the way