Added commenting.
Added checks so items don't spawn too close to player.