added time to raw data
improved note detection
cleaned up NoteDetector