Added function to copy collections, fixed bug when deleting annotations