Bunch of updates

Minimized the rearrange function.
Enabled auto-recalculation of uncompleted tasks.
Enabled mark as complete
Enabled deletion of events.
Enabled reference day.
Minimize code length of rearrange function
Enabled Auto-recalculation of uncompleted tasks
Enabled mark as complete
Enabled Deletion of events
Enabled reference day