Improved convert_format and merge_files functions, added network_to_gpml function and corresponding internal functions