moved viewer out of reconstruct_mesh() added comments