update documentation, use numpy docstring style