changed many precision to lg_length, deleted digitalnet codes