Cleaned up debug messages. Added ability to delete directories.