Hello,
I have analyzed your files and would like to help you, have good experience with AVR controllers. I will have time next week, the task will require 2-3 days to get the code clean. Please contact me if interested.
Best regards,
Viktor Gotwig,
Cologne, Germany.