Added an option for row headers.

This may not always work, but I needed it for my current paper.