Only added applicationDomain related methods.
Extracted everything from lib.rs Also extracted all doc tests to integration tests.