I explained how it works in the wiki, The beam is projected, and "slices" through the subject, and the disruptions in the beam are then recorded. The majority of X-ray does indeed go through the person's body, In fact it has to go through in order to get the scan, but some of it does indeed get deflected. If this did not happen we would not have Radiology as a modern science.
As far as the magnetic field, it is a matter of miniaturization, and power. The glove is nuclear powered, so it is expensive, and is only used by but with enough power you can generate a lot of different fields. In this case it is done at a very close range, making this device not so magical.
All of this information is already listed in the article.
Now I can re-write the article but it would end up being a butt load of redundant techno-babble, which I tried to avoid doing. It may seem hard to believe but I based this device off of a few real world devices that are being tooled around with.