IO-less interface for Tool_election

Small changes in output: lines are now prefixed by "I", "W" or "E".