Added examples and better command registration

Also added ‘list-chats’ sub-command