Added command line interface + fixed some bugs in FeatureGenerator.