Code cleanup and added glPolygonOffset 

Basically only code cleanup for previous commit and added glPolygonOffset to set the scale and bias