Adding decode and encode functions
Merge pull request #1 from Crysnic/master