added several ways to sample the energy in commend blocks (dmc)