Created an hash for the commands
Added missing require statements
Made the interface similar for calling commands show and deadline
Refactored call to command show
Refactored call to deadline command
Refactored call to show and deadline using common code