Adds the correct functionality to the hybrid Monte Carlo derivative. Also fixes the action, although terms seem inconsistent.