Color Singlet Hadron Formation and Phase Transition to Quark - Gluon Plasma in the Bag Model