further linear algebra bugs fixed, updated docs