Refactored, restructured, thread safety
Fixed bots
Added loggers