added analysis script to do a bunch of things