Add licence header to p and copying file