Checked n analysis scripts.
Minor updates to data analysis scripts.