B source code; Corrected some wrong names; Added problem description