Added debug messages for testing button errors
Added debug comments.
Added debug comments.