Use define-derived-mode.
Add line numbers to results buffer.
Add TODO and debug message.
Add text properties to delineate between results.
Change line-number face to stand out more.