added logger, started on config and moved the main mod file