added inverse matrix, improved view