Added GPL header and copyright