Update document
Strip unused code
Add some comments