sketched up some initial functions, checked up some avr specifics.
added a script to flash with arduino.