per phases metric calc code added
working...
eventqueue changes
plots added
still errors present