Added N% option to Flag Function

The N parameter in the flag function now accepts percentage values which will flag a percentage of applicable records rather than a fixed number.
See documentation for more details