Minor typo fixes in comment and error message