Added new exampleAgent for documentation
More Sonar fixes, including a real bug:)