Adds main structure and initiates parsing