Added Scale file command and fixed mouse grabbing.