Multiple files support

added check if multiple files being passed.