Hook up end-of-candidates signal. Fixes #153

Also incorporates some feedback.