update tv4 files
simplify logic
log a warning if a tag has an extraneous value (#632)