Added documentation and example for mirroring.