New Debug and Log system

Added to utils a new debug and log system.