added error json to bean, updated all to argparse
added error json to bean, updated all to argparse