Confused about electron spin (stern gerlach experiment)

My textbook had a similar diagram that depicted the beam traveling between the two magnets as hydrogen atoms. Here is how my textbook describes it:

"When a beam of atoms that have one or more lone electrons passes through a nonuniform magnetic field (created by magnet faces with different shapes), it splits into two beams. Each electron behaves like a spinning charge and generates a tiny magnetic field, which can have one of two values of spin. The two electron fields have opposing directions, so half of the electrons are attracted by the large external magnetic field while the other half are repelled by it."

So are the electrons actually being stripped away from the nucleus by the magnetic field, which then travel in two directions, or are the entire atoms being deflected in two directions?

And my other question, do some hydrogen atoms have electrons with spin +1/2 while other H atoms have electrons with spin -1/2?

The electrons remain bound to the corresponding nuclei. The experiment does not work with free electrons as the deflection due to Lorentz forces would outweight the spin effect.
To the last question: Some electrons will show a z-component (assuming that the magnetic field is in the z-direction) of + or - 1/2. Spin is a vector, so it can orient differently with respect to an external field.