fix node b mac example
Fix error, avoid program finish if not BBS is present
minor optimization in Bmac code