Fix up several typos and errors