Added copyright notices.
Bolted on unittest stuff.