Missing global (thanks to scrutinizer for catching it and Spuds for reporting) + doc

Signed-off-by: emanuele <emanuele45@gmail.com>