Hz adjusted to match Attiny2313
Fixed mixing of DDRD and PORTD, DDRB and PORTB
Indentation modifications