Renamed getInverse as get.inverse.

The latter seems to be a more idiomatic naming style R uses.