fix examples; remove unused code; add const char * constructor to Variant