Change gamma caculation hack and top value.

Do it using an average of the actual set value. ( -100% to 100% )
In that case the gamma change is softer and more accurate.

Also changed the top value due than max is 140 accepted and 150 is
the last value that seams to make a change.
change var naming to kernel standard way