On a first gen there is a largish connector under the tank behind the steering head that is known to be prone to corrosion. It can cause any manner of bizarre problems, including drivability issues. May also be a contributing cause for the headlight issue. Oh yeah, check your battery...