Add version command

Closes #102
This function is synchronous, no need for a callback.