Added the plotting interface and index printing. Also printing in columns.
Fixed bug where last element gets printed twice