added some comments and a licence notice