Rename various iteration variables for consistency

Instead of current_ip_num and next_ip_num, use node_ip_num and record_ip_num