Implemented issue #333
Merge pull request #336 from Bomret/master

Added a find-refs function (Issue #333)