Merge pull request #25 from thiagohersan/master

command line arguments and run script
Merge pull request #26 from thiagohersan/master

keeps track of localNet pings and adds small delay to localNet re-connection attempt
Merge pull request #27 from thiagohersan/master

some changes to communication with server