added an optional interface, num_molecules to BDWorld