Improvements to code. Plus deletion of raw data files at the end
Final version of the CodeBook