Fix some typos and add error string.