add licence.txt. add selftypes