Added addAttribute and toString to Variant Class