Fixed: if an entry is changed in matrix recalculate inverse and transpose (if necessary)
Changed: added formatting in printing of matrix so that it looks nicer.