some general comments to understand the coding approach
code for the neural network