Added optimized transpose write.
Better messages.