refactored arguments

Added multiple files support