fixed update notes code, cleanup