Added backup date comparison and docstrings