Wireframe Toggling Added

Fixed the ibeMeshTerrain() function, forgot to return the mesh.. Now
wireframe toggling works because we can access the material now. :)