Code cleanup and added welcome email content input field in course setting page