Started to add support for layers.

Note that neurons can be set to the wrong layer and this can cause mass problems. Hopefully, I will create a way of making layers that doesn't require writing for loops.