Updated ToggleTodoMode

Restricted the toggling to header lines (other modes may need a
different pattern of line types)