added support for configuring neural networks using JSON files