Simulator code for development of NeuroGrid