Autocomplete filenames.
Cleaned up script.
Merge pull request #2 from lmas/master

Optimizations