docstrings and exception messages's texts fixed