modify tests for new api
refactor api
modify version
update readme for the new api