added Node factory and working on network builder that takes a NN structure defined in JSON