fix a history issue and add function for calling ack with custom arguments

This series fixes a small issue with the way `read-string` was being used (the history variables had a typo) and introduces a new function for running `ack` with custom arguments.