Fixed some typos and type errors