adding comments, combining it with midi_searching.py