Fixed some typos and weird syntax