Added clone helper
Added clone test
Fixed missing right paren
gendocs