Move analysis to an extra file/function
Merge branch 'develop' of https://github.com/Wickfish/DBSDetector into develop