Changed name of boolean method from isHasStartTime() to hasStartTime() and isHasEndTime() to hasEndTime()
Removed unnecessary checks for dismantleTask() and changed the necessary ones to use boolean checks
Removed unnecessary variables
Added a exception for empty undo stack
Added a method for checking if undo stack is empty
Removed unused variables
Cleaned up code
Changed line to use new syntax