adding support for multiple files
adding simple test
adding test