Made the handling of TLV names consistent (start-with-upper-case-word scheme) and various other fixes.