Fixed bug in printRows not checking for more elem
Modify printRows to accomodate wide rows.