Clean logger
Add last function + comments