Grab the wires and twist the ends. That should fix the fraying.19mquinn79 said:
It's very common for boxes to have junctions of other things in them. They could have power feeding the outlets passing through.
Switches allow power to pass through to the other wire. The hot wires need to be hooked to the switch but not the neutral or ground. Leave the white wires alone...