Updated election quitting, added documentation.