Made filenames class non-static, handles command line arguments