Implemented decoding and added a makefile