Geometry of curves and moduli