Fixed selections, added addDetection function. Now works for multiple series. Need to make importing of test series.