Code reformatting, added IsReferenced property, added RelativeOffset