Added decode.go
Redo utils to use blocks