add comments to matrix inverse functions