How are they wired up, and how do they work, thanks.
If you are talking about a feed meaning a home run from the panel then the feed usually goes to the light and drops to the switch and can pick up a couple of recepticles in the wall also. The national electrical code allows for a white to switch hot if it is marked on both ends so you can use a two wire run. If you run from the panel to the switch box then you will have a hot switched for the light, one for the hot recepticles and a neutral for all. Keep in mind the green is allways used and only used for a bond and nothing else.That gives you a 3 wire and a bond going from the small switch box to the larger light box in the cieling, Which will work but is harder to follow years later if you have problems. If you run from the panel to the cieling box it is easy to locate and trouble shoot all wires as everything goes to that box. Most switches are single pole and require 2 wires and it is pretty much a in and out deal so that is simple enough but if it is a 3 way ( or switched at 2 places ) you have to use 3 way switches, If you want to switch from 3 places or more then you have to use 2 - 3 way and the rest 4 way. I realize I am not telling you all you have to know but electricity is not for people who dont know what they are doing. You can get shocked and others can get hurt or the house could burn down with you sleeping in it so I suggest you get out the Home Depot do it yourself books or go to the library and learn what and the whys of electricity. I hope what I have told you gets you to see that it takes some home work to make it safe and understandable.