fixed variable names
fixed issues with sync order on reload
new-on-sync notes now appear in the correct place