Tidy up views, log all functions
tidy up mesh deletion
fix memory leak in mesh