fix README install instructions (closes #1)
reorganize exports/imports
add encode/decode functions