Added support for selecting multiple files and added some more comments