Fixes in all cleanup methods, appointments with age

Fixed problems with cleanup methods going out of bounds
for loops now reverse

appointments show date difference