added setRow(), prettyPrint() and tester