fixed some typos and errors