Added some analysis code, still working on it...
adding in my analysis changes