Add document of header searcher of compiler.
Merge pull request #2187 from take-cheeze/header_searcher_doc

Add document of header searcher of compiler.
Don't reset ridx,eidx. And fix for #1949
Merge pull request #2188 from takeru/dont_reset_ridx_eidx

Don't reset ridx,eidx. And fix for #1949