add CApplication "used/unused" option

add new defines
correct some printing

Signed-off-by: Blazej Mirowski <blazej.mirowski@tieto.com>