Program ESP8266 12 E with arduino Mega

Sorry for some reason only half of my question got posted, I have updated it now

pert:
Surely after all that googling you have realized that you need to connect more than vcc and gnd.