Refactored, Removed Global Variables, Classed GCore (Extend), and Tested