added file loading cleaned up triangulation.