Added Config Cloning Function

Added and documented a cloning function.