Added default and debug handlers and cleaned up logging a little