Fixed all warnings and implemented GLGarbage