Added chisq surface and event display plots, fixed bugs, added matrix iteration