Clean demo projects

Cleaned all demo projects, updated settings and fixed all analyzer warnings but #1328.