added -class option to gen-properties.pl