Add notes.
Move temp and heads out of roots().