Added license headers and added separate class for neuron behaviour