ensured the program behaves how expected using
gpg-connect-agent -v ~/.gnupg/S.uiserver
and using the required commands to sign, encrypt or sign_encrypt a file.
Compiled Kleo for windows, patching existing kleo installation with newly created Kleopatra.exe