Added a "debug" option.

Signed-off-by: Carlos Escribano Rey <carlos@markhaus.com>