Introducing logog and some code cleanup.

- Introducing logog output in Gui.
- Substituting NULL with nullptr.