Added feature to save and read weight values to/from file