Added debug name field.
Added gear_init_hook and removed the gear_create_class function.