fixed 'setBeacons' function to not over-write old beacons, ordered beacon storage