Added a bunch of comments and clarified some variables in the decoding logic.
I need a bunch of tools for studybox related stuff. It makes more sense to have a separate project for them instead of trying to shove all the functionality I want into a single command in the go-nes project.