Use a main function to properly group the code.
Merge branch 'master' of https://github.com/lwindolf/DevOps-Trouble-Map
Properly redirect error messages to stderr to avoid the ending up in node name field.