Cloning

Basic cloning algorithm... saving to file... not tested.