some fixes about zooming

- name of some variables
- validate that scale is in a valid range
- fix scale details for zooming
- scrollbar function to validate scale