Reorder jobs, do configs first

First do configs, then other jobs have easy access to latest
Configurations
Cleanup fit pulseheight peak

Get pulseheights from esd instead of datastore
Let esd do the data retrieval
Start detector numbers with 1, so: 1, 2, 3, 4
Get number of detectors from configurations
Update docstrings
Remove unused imports
Remove unused globals
Remove unused variables from functions (were used in print/plot)