added Global.addMethods() method and defined core constructors in Global