Fix licensing and add copyright