Optimisation of Basis Sets and Pseudopotentials