new method getMax and refactor of json module
refactor of download script