added errors description to docstrings, quantile(), quantile_index() refactored