Fix nagios checks in case nagios is down
Decrease timeout

Should only take 1 second
Added flag for multithreaded processing of data.
Added more exception and error handling to pulseheight fitting.
Merge branch 'master' into tests