bug fixes and new version 0.2