small fixes

declare variable with type
include config.php in functions.php to fix decryption