Read up on the election here, tired of responding in this thread:
https://en.wikipedia.org/wiki/2006_Palestinian_legislative_e...On rocket attacks, Hamas was sticking relatively well to the ceasefire (again, talking about Hamas, not other groups). The blockade was tightened by Israel post-takeover, which then lead to a resumption of rocket attacks.