Minor fixes from Scrutinizer recommandations

* Fix undeclared var in IPC callback
* Fix doc comments