corrected logic flaws

Had some incongruous references resulting from mistakes in function
references (e.g., get needed to be getinverse.