As to the outlet problem, it could just be a coincidence that the outlet quit working at the same time the light was played with. Turn the breaker of to those outlets, carefully remove the outlets from the wall and make sure the wire connections are tight and intact. Reassemble the outlets, turn the breaker back on and check your work. If that didn't cure the problem, then backtrack your work with the light fixture and make sure you didn't change anything there. It's possible that the light/switch gets it's power from the outlet and something you've played with has changed that.