Changed edges and adapted plotRastergram for a more general use.
arg_find_peaks and cleanup