changelog and minor fixes
bump version to 0.2.2 for npm publish