Change how mods are stored and add more validation