Modular Invariants in Algebraic Geometry and Their Applications