Competence and Sporulation in Bacillus subtilis