Changed gravity scaling, added more debug code.