Merge pull request #17 from SGulseth/master

Added check that variable is Object before cloning on it.
Update doc