Fix serializer

tag and length follow emv standart, add tag class var