Added a message template
a global var prf contains the result of the profile if it exists
A check to return the profile if prf is empty
A simple check to see if the prf object exists