added listener registration and notification
fixed URI/URL encodings of file paths
changed "keyFile" to "confirmFile" to prevent confusion with crypto keys