added a definition and fixed some typos