Optimizations

Can now complete filenames and I cleaned up the script a little.