documentation and setMatrix bugfix

Fixed broken example code in documentation.

Chained setMatrix to setInverse to fix duplicate code that was broken
anyway.