Calculating normals for sides from extruded polygons, not as easy as I thought. It's still non-functioning, although it's not a total disaster. Also, removed unused code.
Fixed normal generation for extruded polygons. Still something weird in some cases but at least it's acceptable.