@Paul fixed a bug with number of cpus and changed verbose mode to report every thousand iterations
@Paul refactored neural_network helper code.