driver from sample_send merged in
Added missing includes
Added guards around header file
Start of splitting it all off
Now compiles & links
A few tweaks to tidy it up