added file input to program, matrix class