Added atag structures and linkedlist-style "next tag" inline function