Fixed some typos and code style issues