Moves input/output walking functions into anafora.__init__
Adds command-line interface for anafora.heuristic and fixes bug on empty set of entities