Remove all unused code and add comments

All old commented code has been removed

BASE_VALUE renamed BASE_SLIDER_VALUE for clarity

Some top level comments added describing variables
Refactor display variable logic

Convert logic for setting display variable into self-executing
anonymous function which is much cleaner