change constants

before, all the constants was in "#define" type...
now it's const <type> (much better)
download + format

download use format after having download the files.