Add -iteratefn
Reorder the partition examples to follow more logical order, add tests