Mailer library documented

Documentation done for mailer library