Adjust API to something that makes more sense

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Add constants

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>