Fixed behavior of -i option (default was UINT32_MAX which translated
to -1 int).  Reviewed code for 64-bit cleanliness.