Implement history2text tool

Closes #5