More efficient method for in-browser representation of matrixes.
Bunch of fixes