Added version constraints in dependencies. Changed matrix shape. A couple of new functions and documention changes.