Executed the initialisation of the DBN and tested it.
Added the updateWeights function.