Reworked neuron library so it can be extended and started network structure.