Sonar fixes.
Added docs