Add docstrings for substring-pos and consensus