Added display() method, for initial command line interface.
Refined display().