modified the example code to highlight some bugs/problems with the Galileo SDK