Change ArrayList to Collection in FileHelper

Also removed getTree