made "root_folder" parameter optional defaulting to Inbox
added elasticsearch output support