Changed InsertNote to use trackreallines2, plus various