hidapi tool: now with CLI and better structure