The hydrodynamics of cilia: modelling & optimization