After working on the brakes always check that the pedel is firm BEFORE driving off, the sudden grab and prayer for the handbreak rubs this one in
When checking electrical problems remember that volts to the bulb does not equal to volts away from the bulb, always check the earths.
Heat is your friend when checking for poor electrical wireing, the poor joint gets hot, smoke though is taking this to the limit.