commit r code and CodeBook