refactored referencedby.rb, and removed temporary files