Assistance with code- Added functionality, lost basic function

No PULLUP resistor on reset.
No series base resistors. Consider MOSFETs
No limiting speaker resistor.