refactored codes, added standalone CLI client, option of interactive vs. standalone CLI