msg function added. Make it easier to distinguish stdout and our messages