added license header and author ref.