implemented z scale and cleaned up bin limit rounding