1. added COMMAND_TYPE
2. added COMMAND TYPE <- determineCommand(command string) 
3. commandHandler handle COMMAND_TYPE
4. in delete function event to be cought before delete for return