Added onset marking function. See README.