alter version and user-agent
add option to override default host
eliminate stray tab
make script executable