added thickness to star

also added error checking for opengl calls