added (untested) peak detection and processing on gpu