Cleanup and added copyright message in several files