added new parameter for testing desiredPercentageOfActiveColumns
added comments