updated origin functionality
added example
added clone function