Removed ON and OFF from gmcommandtable and replaced them with .gmon and .gmoff. Also fixed some errors.