Fixed all the bugs

all the issues have been addressed. The sole thing remaining to finish is per polygon wireframe and edges. I have implemented them but they will be too slow are they must be sent per polygon basis and thus if there are n polygons then there will be n extra meterials which are computation hungary. Also, there are usually >200 polygons. Thus, want to discuss a better approach for that.
Except that all the bugs have been fixed.