Batch convert now remembers format - thx MM :)
fix minor possible restore state issue
Added unit tests for CountTagInText