Added 'recursive' mode to DeleteCommand.
A little refactoring
Fixed logging by adding third parameter.
Minor UI bug fixes