Finalised project, fixed a bug in the berendsen thermostat