added support for reading multiple files

Pull request just for review.