Cleaned up logging api, fixed debounce logic
Merge branch 'refactoring'