Add --clear to clear the cache.
Export clear_cache through the API.
Fix API documentation.
Fix --export and add resolve_readme to the API.
PEP8 and fix docstring.