Moved messages to message log

Moved messages to message log and others printed only with DEBUG mode
compile setting