Added .diretory to the ignored files from git list.
Code style cleanup and small fixes, up to ConsoleMode.cpp,h

    - Added missing copyright headers
    - applied the code convention, mostly respecting 4 spaces as indentation.
    - Made sure members were initialized
    - Added m in front of members, eg: mSpeed.
    - Grouped functions together when they were mixed with members.

Also fixed two possible crash causes when leaving the game.
One crash was caused on purpose in fact, to permit debug.
I simply commented it out as it seemed to be obsolete.
It can be simply uncommented if needed.