refactored, static config class, run script
added gpg functionality
moved logging to config