Add code for encode,decode and model fix #3 (closed)
This will create a new commit in order to revert the existing changes.