Mathematical modelling of fungal growth and function