really bad getEC2Instance implementation
ported poll for publicDnsName
fix accumulated syntax errors
fix some typos/bugs