Add license
CLI support and JSON format