add gclone function, tests and example files