plot_threshold.py now displays correct errorbars
added scripts for analysing lifetime measurements