Custom spiking neuron code used as a framework to research and validate hypothesis on learning and gating in Drosophila Larvae