improved button debounce, cleaned up comments, code cleanup