Added changeOrigin option with test and docs

Added changeOrigin option with test and some docs