Added fix to castep run to delete old .param before copying over new one as leaving this out seemed to cause problems.