add updateReference to importmidi
update build system
update clef implementation