Can define  with env.host
Allow override port value with env.port
Initialize variables to zero and use sum of all nodes instead of last one
Merge pull request #2 from dsavineau/master

Allow override $host,$port with env.{host,port} and Fix values calculation