Fixing some bugs and releasing 0.1.1 version.