Added output and bare functionality to export_key gpg module function