minor fixes; check argument types
bump version to 0.0.2