Add sonar configuration file.
Sonar improvements.