Added quad structure generation and ID system for pips and links