added xgram option to get_feature()