Fixed typos and code style