Several bug fixes and 1.0.1 release.