bug fix in mesh.py and added timing.py