Index: trunk/ppSim/src/ppSim.h
===================================================================
--- trunk/ppSim/src/ppSim.h	(revision 14463)
+++ trunk/ppSim/src/ppSim.h	(revision 14657)
@@ -72,5 +72,5 @@
 
 /// Loop over the output file, generating simulated data
-psExit ppSimLoop(pmConfig *config ///< Configuration
+bool ppSimLoop(pmConfig *config ///< Configuration
 		 );
 
@@ -89,8 +89,9 @@
 
 psVector *ppSimMakeBiassec (pmCell *cell, pmConfig *config);
-psVector *ppSimMakeBias (psImage *signal, psImage *variance, pmCell *cell, pmConfig *config, const psRandom *rng) ;
-bool ppSimMakeDark (psImage *signal, psImage *variance, pmConfig *config);
-bool ppSimMakeSky (psImage *signal, psImage *variance, psImage *expCorr, ppSimType type, pmConfig *config, pmFPA *fpa, pmChip *chip, pmCell *cell);
+psVector *ppSimMakeBias (pmReadout *readout, pmConfig *config, const psRandom *rng) ;
+bool ppSimMakeDark (pmReadout *readout, pmConfig *config);
+bool ppSimMakeSky (pmReadout *readout, psImage *expCorr, ppSimType type, pmConfig *config);
 bool ppSimInsertStars (psImage *signal, psImage *variance, psImage *expCorr, psArray *stars, pmConfig *config, pmChip *chip, pmCell *cell);
+bool ppSimInsertSources (pmReadout *readout, psImage *expCorr, psArray *stars, pmConfig *config);
 
 bool ppSimInitHeader(pmConfig *config,
@@ -99,7 +100,6 @@
 		     pmCell *cell);
 
-bool ppSimSaturate(psImage *image,	// Image to apply saturation
-		   const pmConfig *config,		       
-		   const pmCell *cell); // Saturation level
+bool ppSimSaturate(pmReadout *readout,	// Image to apply saturation
+		   const pmConfig *config); // Saturation level
 
 bool ppSimUpdateConceptsFPA (pmFPA *fpa, pmConfig *config);
@@ -108,10 +108,12 @@
 bool ppSimAddOverscan (pmReadout *readout, pmConfig *config, psVector *biasCols, psVector *biasRows, psRandom *rng);
 
-psImage *ppSimAddNoise(psImage *signal, // Signal image, modified and returned
-		       const psImage *variance, // Variance image
-		       const pmConfig *config,		       
-		       const pmCell *cell,
-		       const psRandom *rng // Random number generator
-		       );
+bool ppSimAddNoise(psImage *signal,
+		   psImage *variance,
+		   const pmCell *cell,		       
+		   const pmConfig *config,		       
+		   const psRandom *rng // Random number generator
+    );
+
+bool ppSimSetPSF (pmChip *chip, pmConfig *config);
 
 #endif
