Made the logger default to a log directory in the cwd.
Changed to using logger. Also formatting changes.