Refactor files function
Merge pull request #90 from penibelst/join-files

Refactor files function