Update mod.cpp for v1.3

(Also fixed a missing ';' error in name = "..";)