Added history command with some handling;
Handling debug output with patterns