Add some formatting functionality

Added functionality to customize the message and format