Added get method and fixed typos in errors.py