Added copyright and BSD licence