You should look at the sample decoders first, they read very straightforward I think.