Added comments. Fixed typos.