First Principles Modelling Of Thermoelectric Materials