Removed a bug upon applyFun call with isPerEvt, added a circle fit function from the web