Add logger system
Moved log system to new file