Add --config file.json

I moved all the defined require() at the top because i had to use fs :)