Code book plus some small changes to the other two files