added server code to download files and determine last update of server files