Fixed positioning of data and rewrote toString() method to accommodate multidimensional data structures.