programming atmega 8

Most examples in the Arduino IDE (the Arduino software on the PC) will work.
The bootloader is in the Arduino IDE. You have to select the programmer, and burn the bootloader. It is all done from within the Arduino IDE.