Corrected the number of rows in the STCQ4 case.

See #2.
Added command-line option to relabel graph.

Implements #1.