write finalgeomatom fixes throughout library