Allow retrieval of parameters in neural networks

The compiler disallows accessing parameters directly, thus renaming parameters to _parameters and adding a getter for the parameters Array.