Switched from yaml to json

yaml is not in stdlib, this removes a bit of dependencies.
Since this file is not edited by users, the added verbosity doesnt
matter much.
Refactoring + argparse