Added copy functions

Added some useful copy operations with examples.