clean up example code
move geolocation code to beecontrol

geolocation code belongs to beecontrol but was placed in example code
which resulted in a horrible mixture