Moduli of Curves and Spin Structures via Algebraic Geometry