added docstrings for spelar