Updated spider.txt date checking function and added comments