Add an example to updateAliases

I've added an example for how to do an atomic alias swap with the updateAliases method.