Add license to composer.
Fix some PhpStorm inspections.