[glHelper] added Error class; added loadTexture function; changed fixed main to catch and print exceptions