Update api.
fix bug.
Merge pull request #7 from fotavo/api-update

Api update