Renamed vars to avoid warnings

Renamed a couple of NSError vars so they doesn't shadow a context
precedent existing var.
Removed "cast" warning on stringWithFormat

Chnaged %d to %lld to avoid warning regarding use of impropper mask.