Added some details about the matrix generation