fixed typo in error strings
fixed error raising naming