Improved API doc
Moved example code
Refactored