added comment to print matrix function