Added comments and fixed formatting for changes made for rabbit-mq connector changes

As per review i added comments and made changes in formatting to match Trooper code format.