New analysis scripts and changes to a few old analysis scripts