Peak picking implemented

Almost working...