fixed division by zero, addressed non-existant index operation on array, and updated date display