Adding total cost to sgd training, and stopping below threshold. adding in alpha search script
Adding total cost to the trainNN script