make test for RandomInRange better
1. add extra logging of neuron state  2. fix bug where it was not initializing elements correctly.  3. fix unit test bug caused by logging.
extra validation before cortex.run will run - make sure nodes have links back to cortex
refactor NewCortexFromJSONFile() to this package