this is working with finding peaks in matlab, but still missing a bunch of the lines, and not filtering or anything yet