Added extract_domain interface. Updated all interfaces, normalize some private attributes names of domain