add function copyObject
Merge pull request #4 from motodimago/add_copy_object

add function copyObject