Add a lot of documentation and minor tweaks to Aho-Corasick module.