Added some test stuff for ManageBGL syncing

also added some code for night time activity and test pebble
communication