Update doc comments for new web-site
Fix a number of errors such as leaking variables and code style
Typo - deprecated