reads cmd args, swaps if first is smaller, uses default values if none given