final fix for #70 - fix messed brackets
simplyfy some part of code in addRealtimeNote