Added function to send trade chat messages.
Cleaned up code to project guidelines.