Licensing and copyright files

Plus some minor cleanup.