plot updated
compiler errors fixed, compiles now and runs much faster