Update functions organisation

Cache functions are now in cache.py
Functions.py contains others functions.
Add CLI interface
add bash script to extract data