1. Handle filenames with spaces 2. Check if pdflatex and attachfile packages are installed before trying to use them. 3. Use a more intuitive interface "pdfattach -o file.pdf file1.djvu [file2.djvu]..." instead of forcing the user to specify "-i" option for every input file.