rename getinv function to getinverse function to match test output posted by Gregory Horne; change cache message to match test output.