Formation of Molecules near a Feshbach Resonance in a 1D Optical Lattice