Improved example
API documented