typo fixes and minor code snippets added