Added handling of nil object parameter and added pragma marks to DGCommand class