Fixed a few small bugs and a version bump to 0.1.