Merge pull request #3 from darkleaf/master

make release with rebar
add api