Refactoring: moved some files to the 'graphics' package.
fix: compiler warnings about order of initialization
Resolved some issues found by cppcheck.