Debounced scroll function.
Removed test logging.
Code formatting tweaks.
Created max scroll tracker, closing #2.