Fix several minor typos that prevented this from running.