Added tag to snapshot, generate XML

XML description of registers and snapshots is written on build.