fixed minor bug in feature generator, added construct factory