Add --debug logging

Still needs to be adjusted some, potentially adjust verbosity slightly etc.