added some docstring documentation