Moved mesh scaling to code, saved 5ms!!!!

Modified all scences according. "Scaling" is now done at mesh generation
time, with parameters provided in the mesh script.