Changes for version 0.02

  • fix some bugs
  • add tests