Multiple changes

- Moved logfile to local directory rather than user's home directory.
- Fixed some spelling.
- Modified wget to use the supplied URL as the referer, in case the site in question requires it.