Add license information and split header files.