remove typos and added further comments