added mail_comments to send comment attachments.

other modifications due to chown and chmod.