Create decode.cpp

the other part of the program that decodes, again, used to be a sep program so there are a lot of redundancies. at least it compiles!