search replace now returns a string instead of editing it inplace
cldict now pointers all the way through.
update z loci now compiles, but might not be correct yet