typos
- Added json file for target configuration - Added arguments handling for commandline - Added some error handlings - Several other minor changes