fixed some logic errors. fixed max usps length.