improve formatting when printing one matrix
fix viewer on linux