Add licence code to some file and fix typo in others.