fixed issue with tags & IDs, sneaky dangling pointer. Parsing code now 70-ish% finished