Fix snippet and data encode
Update readme