final code script along with readme and checking how codebook looks