Fix and clean up unit tests; clean up commenting; increment version to 0.9