fixed some format for code book (3), changed directory of write-out for the file