Rigging has happened definitely , that too , not on small scale, in these elections.
You should first prevent corrupt Returning Officers. If they are honest, then Rigging is very difficult.
Since , Democracy is in early stages in Pakistan, the situation will improve with the passage of time...