FINISHED TERRAINLIB