Fixed bug in triangulation and added print of resulting mesh to main