Bugfix in HexToByte
Cleaned up use of gpg_err_code_t
Read/write settings encrypted