Refined script and actualized CodeBook.md