Updated Config::measure so it only measures observables if they are switched on.

I also changed the variables bools to be static consts to avoid a warning on compilation.