Added init methods for constructors. Added null value check in methods of basic Neuron class