removed demo code
support for metadata changes and empty notifications
refactored init options