converted all arrays from jagged to 2d arrays
added import of file dialog
added import from file and changed arraysize and converted for loops to match them
made general method for printing a matrix and a method to find the table size