add configurable items
add test and minor refactoring
bump version to 0.2