Made some more changes to the scaling...

changed the function so that it is not recursive.
Merge pull request #73 from AngelaRigden/master

Made some more changes to the scaling...