fix some bugs from pull request #24
upgrade vers 0.1.0