creates matrix and outputs basic stats