fixed reference and definition of controlNote
minor changes