Fixed bugs caused by change in sampling architecture

The new architecture needs to pass an argument to the "refresh" methods.
Most methods should now be fixed