Fixed typos and code alignment