Added default message class, if none given
Improved alert message class assignment
Added ability to override message format