FORMATION AND HEATING OF MOLECULAR CLOUD CORES