Let's try developing with Eclipse for a change.
Used code checker to fix some warnings.