Implemented "make note-level" button and neatened up makeLevel()
function