Fix licence and format