Fixed a few bugs and prepared for v1.0.1.