Fixed minor copy-paste bugs that were affecting the time config options.
Improved documentation of register listener and added a check to avoid registering a listener for a non-existant key.