darkrpmodification jobs not working

I have coded in a number of jobs into jobs.lua when I join the server the defaults are not disabled and my new jobs are not being added. This is the relevant lua error:

[ERROR] addons/darkrpmodification/lua/darkrp_config/disabled_defaults.lua:36: attempt to index global ‘GAMEMODE’ (a nil value)

  1. unknown - addons/darkrpmodification/lua/darkrp_config/disabled_defaults.lua:36
  2. include - [C]:-1
    3. unknown - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:31
    4. include - [C]:-1
    5. unknown - gamemodes/darkrp/gamemode/cl_init.lua:33

Does anyone know what is wrong?
here is my job code


 //Created using DeaDeye's Classmaker
TEAM_JEDI = AddExtraTeam("Jedi", {
	color = color = Color(164, 33, 191, 255), 
	model = "models/ryan7259/mace_windu/mace_windu_player.mdl", 
	description = [[VIP CLASS
		This is the Jedi class
		This class can base with other Jedi
		This class can Raid with a group of 2 or more Jedi]], 
	weapons = {"weapon_lightsaber"}, 
	command = "jedi", 
	max = 5, 
	salary = 70, 
	admin = 0, 
	vote = false, 
	haslicense = false, 
	prior = false,
	customCheck = function(ply) return ply:GetNWString("usergroup" == "platinum" end
})

TEAM_POLICE = DarkRP.createJob("Police Officer", {
	color = Color(25, 25, 170, 255),
	model = {"models/humans/nypd1940/male_02.mdl", 
			 "models/humans/nypd1940/male_01.mdl", 
			 "models/humans/nypd1940/male_03.mdl", 
			 "models/humans/nypd1940/male_04.mdl", 
			 "models/humans/nypd1940/male_05.mdl", 
			 "models/humans/nypd1940/male_06.mdl", 
			 "models/humans/nypd1940/male_07.mdl", 
			 "models/humans/nypd1940/male_08.mdl", 
			 },
	description = [[The protector of every citizen that lives in the city.
		You have the power to arrest criminals and protect innocents.
		Hit a player with your arrest baton to put them in jail.
		Bash a player with a stunstick and they may learn to obey the law.
		The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
		The Battering Ram can also unfreeze frozen props (if enabled).
		Type /wanted <name> to alert the public to the presence of a criminal.]],
	weapons = {"arrest_stick", "unarrest_stick", "fas2_p226", "stunstick", "door_ram", "weaponchecker"},
	command = "police",
	max = 10,
	salary = GAMEMODE.Config.normalsalary * 1.45,
	admin = 0,
	vote = false,
	hasLicense = true,
	ammo = {
		["pistol"] = 60,
	}
})

TEAM_GUN = DarkRP.createJob("Gun Dealer", {
	color = Color(255, 140, 0, 255),
	model = "models/player/monk.mdl",
	description = [[A Gun Dealer is the only person who can sell guns to other people.
		Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
	weapons = {},
	command = "gundealer",
	max = 3,
	salary = GAMEMODE.Config.normalsalary,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MEDIC = DarkRP.createJob("Doctor", {
	color = Color(47, 79, 79, 255),
	model = "models/player/kleiner.mdl",
	description = [[With your medical knowledge you work to restore players to full health.
		Without a d, people cannot be healed.
		Left click with the Medical Kit to heal other players.
		Right click with the Medical Kit to heal yourself.]],
	weapons = {"med_kit"},
	command = "doctor",
	max = 3,
	salary = GAMEMODE.Config.normalsalary,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})

TEAM_CHIEF = DarkRP.createJob("Police Chief", {
	color = Color(20, 20, 255, 255),
	model = "models/humans/nypd1940/male_09.mdl",
	description = [[The Chief is the leader of the Civil Protection unit.
		Coordinate the police force to enforce law in the city.
		Hit a player with arrest baton to put them in jail.
		Bash a player with a stunstick and they may learn to obey the law.
		The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
		Type /wanted <name> to alert the public to the presence of a criminal.
		Type /jailpos to set the Jail Position]],
	weapons = {"arrest_stick", "unarrest_stick", "fas2_deagle", "stunstick", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = GAMEMODE.Config.normalsalary * 1.67,
	admin = 0,
	vote = false,
	hasLicense = true,
	chief = true,
	NeedToChangeFrom = TEAM_POLICE,
	ammo = {
		["pistol"] = 60,
	}
})

TEAM_MAYOR = DarkRP.createJob("Mayor", {
	color = Color(150, 20, 20, 255),
	model = "models/player/breen.mdl",
	description = [[The Mayor of the city creates laws to govern the city.
		If you are the mayor you may create and accept warrants.
		Type /wanted <name>  to warrant a player.
		Type /jailpos to set the Jail Position.
		Type /lockdown initiate a lockdown of the city.
		Everyone must be inside during a lockdown.
		The cops patrol the area.
		/unlockdown to end a lockdown]],
	weapons = {},
	command = "mayor",
	max = 1,
	salary = GAMEMODE.Config.normalsalary * 1.89,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true
})

	//Created using DeaDeye's Classmaker
	TEAM_ADMIN = AddExtraTeam("Administrator", {
		Color(38, 62, 181, 255), 
		"models/player/gasmask.mdl", 
		description = [[Administrator, all admin duties such as banning,
			kicking or simply reprimanding a player must be
			done on this class. ]], 
		{"keys","weaponchecker","arrest_stick"}, 
		"admin", 
		100, 
		900000, 
		1, 
		false, 
		true, 
		false
	})

[editline]22nd October 2014[/editline]

I know the administarator job on the bottom is spaced wrong I fixed that already

[editline]22nd October 2014[/editline]

I have also found that none of my modules or entities for dakrpmodification will load and I do not understand it

GAMEMODE only exists after initialization. Use GM in files instead of GAMEMODE ( unless it is within a function which is called after the game-mode has finished loading ).