modified numLayers to numHidden layers, looks good now