Optimizations

and updated the Selenium files with non-corrupted versions