Some variables were renamed and moved to config-parser.sp
Moved common code to separate file
Some code refactored
Renamed global variables, moved player checking to core file.