v0.2.2 improved example, fixed some minor bugs