Some updates to castep geometry optimiser.