Added func to play files from arg. Did refactoring.