adding new data, updating docs, changing from pinv to inv