Merging calculator scripts

* Putting document load functionality in config