Merge from Mihap and Leha

StimLoader and StimDetectShift added by Mihap
StimDetectorTest added by Leha