Updated modreg.c, fixed a few more mistakes