untested complete program of B functionality
Minor changes to program, successful B func check