Added licence file and copyright statements to make it clear that people are allowed to reuse this code.