I can't help with the rest, but note that Maxima's notation for matrix inverse (symbolic or not) is A^^-1. "invert" is just a routine implementing a particular way of calculating explicit matrix inverses.