Fix script, add code book

Script was munging f/t component of measurements.