Making the code easier to debug. I also found the reason for the bug
that still affect the transpose. Fix in progress.