Allow max_features in percentage of total features
Handle typing issue