few changes. added do/while loop in main method. Random matrix generator only generates matrix now.