Adding function checkedCachedCompile to comprehensively handle compiling...

... with cached checks to a file.

This also includes documentation changes for consistency of checkedCompile.