Beautify code, some typos in comments fixed