Run ./mdtest to start the program. Optionally, use rlwrap ./mdtest to get a nicer prompt.
Add -debug if you want to see the raw data being sent/received.
On the first run, scan the QR code. On future runs, the program will remember you (unless mdtest.db is deleted).
New messages will be automatically logged. To send a message, use send <jid> <message>