Add api in README
Add two test
Remove console and add ifinity option