the metadynamics tutorial is in a decent form.