Fix scale() function

Cause: improper whitespace
Readd: terminal width is used when no width/height supplied