added further speed improvement to SciPy-based implementation + improved docstrings + improved naming + typo