retire api
add test for retire api
update README
Merge pull request #11 from stanaka/retire_api

support Retire API