added accuracy and docstring