Use Melanie's code by itself, once you have that working with the DS1307 then move on to integration.
Also this code you show is quite long, trying to debug it with new code being added will be a nightmare..........................
So start with getting small pieces of code to work at first and build upon it.
good luck





Bookmarks