Added Domain Whitelist and structure for libraries