Note editor now working, loads of other fixes