changees to LayersNNeurons function

argument added to specify number of layers.
Should only be 2 or 3. but an argument is easier to input that changing
code.