Fixed some typos and issues related to code style.