Make scale extent configurable

This pull request makes scale extent configurable, adds that configuration to landing page (so you cannot lose the graph) and formats the code on the landing page.
Fixes #128
Fixes #167
Fixes #172