minor bug fixes: fixed the date format for future log files; switched the edge checking for the labels to be based on the whole rectangle