API CHANGE: AddAtom method of Ref is now AppendAtom.   Also, Modified Ref interface, split it in smaller ones