Codes, Invariants and Modular forms