Fix typos.
Simplify the logical of ListCache.
Fix licens file encoding and format.