refactoring
Added log dependecies + changed setting handling
Change the way I handle user credentials versus Ccovey's original