As it turns out, the code I've generated is very similar to the authors and I start to wonder if copyright problems will arise - I guess only time will tell.
If you want to learn how a format is built up and wish to play around with the authors copyrighted files then great.
If, however, you wish to develop your own program that reads one or more of the formats outlined in this book, then look elsewhere first. There is a wealth of information on the internet that is completely free.
Not a worthy purchase.