modified code to use(for saving/for reading) only one file for both weights and biases instead of two separate files