add constructor
fix tests
build v0.0.8
Merge pull request #14 from mohayonao/classlib

improve constructor