Create public function to check if cache needs update

move update cache check to public function
Bug fix, variable cache_file
Merge pull request #63 from frederikbosch/master

Create public function to check if cache needs update