use Bashism [[ -s ]] instead of wc -c
improved error messages, check for wget errors
rename viewbug.sh -> viewbug