moved stats testing code out of main.  removed and changed some stdout messages.  added vector to test() function in main in preparation for second matrix as input