renamed method to add directory file contents to csv data; fixed rspec accordingly