ewma method now works. also added pickling