fixed several bugs. and version 0.0.1