Added basic message dumping to file