Took the file, added, notes, changed it around to work with a matrix instead of a vector.