Cleaned up t function sanitization in message, and some coding standards.