add remove_members_outside_rank
fix comments and var names
return the total member count which was removed
Merge pull request #13 from simonz05/remove_members_outside_rank

add remove_members_outside_rank