fixed typos

I tried trimming up invalid expressions without knowledge of Autocomplete and TRIE. Please read and adopt this carefully.
fixed code areas
fixed a typo
Merge pull request #1 from xissy/master

fixed typos