Added output option

- added argparse
- prints in json forma for "-j" and "--json" options
- prints invalid argugment error for anything else.