Fixes #1. I also added the ability to print the list once it has all the files stored in memory.