CodeBook and Script Fixes

The CodeBook has been created and some monor changes made to the script