Tested finalizeReport() and added ConsoleResource

Testes also the finalizeReport() method, dynamic deallocations have
been moved up the code.
Added struct ConsoleResource.

Signed-off-by: Raffaele Aquilone <raquiloX>