First-Principles Modelling Of Materials: From Polythiophene To Phosphorene