encode from long, encode from string
Merge pull request #5 from aztecrex/api

api improvements