fixed typo
added env variables for gmail account and more logging