Debugging statement and fix to create_loss_samples
First commit