made it a bit faster and realized flat and smooth

Flat and smooth are now switchable with tab key.
Eliminated a for loop in loading the mesh, so it's a bit faster now.