Added a macro so that leaf addition info is only printed to screen when compiled in debug mode