Changed getTableContents() to return an array of objects rather than an array of arrays.