return by reference in HackyMatrix
add a bit of documentation