Fixed clone so that it gives the clone a new uid; updated docs