Change interface of encode and decode functions
Add examples in README
Fix test cases
Add string-literal-representation and other encode functions