added rests and functionality to autofill rest of measures with rests when a note is added