Fixed some bugs and version bump.