Fixed build system - wasn't linking everything
Fixed Atmel's code - emits warnings!

Shame on you Atmel.
Started moving code to synth.c, synth.h