Fix bugs and set version number to 0.1.0