Added code to receive mail from gmail.
Added test code in main.