If you want to include google's sitemap downloader in the google bot identifier then change line 15 from 'googlebot' to 'google'. Also, if you would like to see a visitor's actual user-agent then change line 26 from

'Guest';
to
''. getenv('HTTP_USER_AGENT') .'';

I have already made these changes and included the file for you to download.

More...