Added details and fixed typos in comments