Update log function and comments
Add config for API
Move logs
Create workable Autologger