cleaned up logging, adding config files