variety of improvements and dead ends added to the get_file function
first "fully" functional version ready.