fixed some bugs and changed interface
0.1.0