Implemented domain switch
Merge pull request #60 from pepakriz/domainSwitch

Implemented domain switch