added make_single_file() function to the weights updates
minor fix